package com.boot.dog.service;

import com.boot.dog.common.util.ApiResult;
import com.boot.dog.entities.pojo.Organization;

import java.util.List;
import java.util.Map;

/**
 * @Author: MaxLv
 * @Date: 2020/1/16
 */
public interface OrganizationService {

    ApiResult<List<Organization>> getOrgByParentId(Integer parentId, Integer level, Map<Integer, List<Integer>> map);

    ApiResult<Void> saveOrg(Organization org);

    ApiResult<Void> editOrg(Organization org);

    ApiResult<Void> delById(Integer id);

    ApiResult<List<Organization>> searchOrg(String title, Map<Integer, List<Integer>> map);

    ApiResult<List<Organization>> getAllOrg(Map<Integer, List<Integer>> map);
}
